package com.ericsson.enap.modules.kpi.job.ims;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.job.ManualQuartzJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.kpi.task.ims.ImsFiveKpiTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * IMS五分钟指标处理（ry-vue库网元侧）
 * @author yanghai
 */
@Component
public class ImsFiveKpiJob implements MainJob {
    @Autowired
    QuartzTableManager quartzTableManager;
    @Autowired
    ImsFiveKpiTask imsFiveKpiTask;
    String jobName="imsFiveKpiJob";
    @Override
    public void doTask() {
        System.out.println("ImsFiveKpiJob start.....");
        //imsFiveKpiTask.execute();
        quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName, ManualQuartzJob.class,"0 0/5 * * * ?",imsFiveKpiTask);
    }
}
